# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Alexander Seiler <seileralex@gmail.com>

pkgname=python-halo
pkgver=0.0.31
pkgrel=5
_pkgname=${pkgname#python-}
pkgdesc="Beautiful terminal spinners in Python"
arch=(any)
url="https://github.com/manrajgrover/halo"
license=(MIT)
depends=('python' 'python-log_symbols' 'python-spinners' 'python-termcolor' 'python-six')
makedepends=(python-setuptools)
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('7b67a3521ee91d53b7152d4ee3452811e1d2a6321975137762eb3d70063cc9d6')

build() {
  cd "$_pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"
  python setup.py install --skip-build -O1 --root="$pkgdir"
}
